const express = require("express")
const path = require("path")


const app = express()
const dirName = path.join(__dirname, "router.js")
const router = require(dirName)

app.use("/lcdp", router)

// app.use() 这个函数的作用就是用来注册全局中间件

app.listen(8080, () => {
    console.log("服务端已经启动")
})
